//
//  ImagePickerManager.h
//  Simubang_iphone
//
//  Created by Kelly xu on 16/4/19.
//  Copyright © 2016年 Simubang. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^imagePickerCallBack)(UIImage *usericon,UIImagePickerController *imgPicker);
typedef NS_ENUM(NSInteger,ImagePickerType) {
    ImagePickerTypeAll,
    ImagePickerTypePhoto,
    ImagePickerTypeCamara
};
@interface ImagePickerManager : NSObject<UIActionSheetDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate>{

}
@property(nonatomic,copy) imagePickerCallBack completion;
@property(nonatomic,strong) UIImagePickerController *camaraPicker;
+(ImagePickerManager*)sharedImgPicker;
-(void)showCamaraWithCompletion:(imagePickerCallBack)completion;
-(void)showImgActionWithCompletion:(imagePickerCallBack)completion;
-(void)showImgActionWithType:(enum ImagePickerType)imagePickerType enableEditing:(BOOL)enableEdting Completion:(imagePickerCallBack)completion;
-(void)selectImgWithType:(enum ImagePickerType)imagePickerType Completion:(imagePickerCallBack)completion;
@end
